import myaxios from "../MyAxios";
import BASEURL from "../BaseUrl"

const JKTURL = BASEURL.JKTURL
const exerciseApi = {
    queryall(params) {
        let url = JKTURL + '/exercises/list'
        return myaxios.get(url, params)
    },
    queryByNameLike(params) {
        let url = JKTURL + '/exercises/ByTitle'
        return myaxios.get(url, params)
    },
    del(params) {
        let url = JKTURL + '/exercises/del'
        return myaxios.get(url, params)
    },
    add(params) {
        let url = JKTURL + '/exercises/add'
        return myaxios.post(url, params)
    },
    update(params) {
        let url = JKTURL + '/exercises/update'
        return myaxios.post(url, params)

    },
    queryById(params) {
        let url = JKTURL + '/exercises/ById'
        return myaxios.get(url, params)
    }

}
export default exerciseApi;